//
//  ILApLink.h
//  IMILabKit
//
//  Created by OrrHsiao on 2022/6/23.
//

#import <Foundation/Foundation.h>
#import "ILLinkObject.h"
#if defined(__has_include) && __has_include(<IMILabSDK_Log/ILLog.h>)
#import <IMILabSDK_BindCommon/ILBindDefine.h>

#else
#import "ILBindDefine.h"


#endif

NS_ASSUME_NONNULL_BEGIN

@interface ILApAndBCLink : ILLinkObject

/// 初始化方法
- (instancetype)init;

/// 绑定设备
- (void)linkDevice;

/// 停止绑定
- (void)stopLink;

/// 更新错误
/// @param code <#code description#>
/// @param subCode <#subCode description#>
/// @param canRetry <#canRetry description#>
- (void)updateLinkError:(ILBindError)code subCode:(NSInteger)subCode canRetry:(BOOL)canRetry;

/// 更新当前状态
/// @param mode <#mode description#>
/// @param subCode <#subCode description#>
- (void)updateBindMode:(ILLinkState)mode subCode:(NSInteger)subCode;

@end

NS_ASSUME_NONNULL_END
